package cn.tk.model.pojo.mr.flow;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by denglw on 2021/7/15.<br/>
 * Desc: 语音话术详情
 */
@Data @NoArgsConstructor
public class VoiceReplyDetail {

    private Long detailId;

    /**
     * 话术id
     */
    private Long replyId;

    /**
     * 内容类型：1句子 2变量
     */
    private Integer type;

    /**
     * 是否可打断
     */
    private Boolean canDisrupted;

    /**
     * 当type=1时，话术内容
     */
    private String content;

    /**
     * type=2时，对应变量id
     */
    private Long variableId;

    /**
     * type=2时，对应变量的英文名
     */
    private String variableEnName;

    /**
     * type=2时，对应变量的类型
     * 1枚举 2个性
     */
    private Integer variableType;

    /**
     * 服务器保存路径(/data/iocms/.....)
     */
    private String filePath;

    /**
     * 录音文件时长（ms）
     */
    private Integer fileLength;

    /**
     * 子话术次序号
     */
    private Integer callNum;

    /**
     * 子话术内部次序号：从小到大
     */
    private Integer sortNum;

    public VoiceReplyDetail(Long detailId, Long replyId, Integer type, Boolean canDisrupted,
                            String content, Long variableId, String filePath, Integer fileLength, Integer callNum, Integer sortNum) {
        this.detailId = detailId;
        this.replyId = replyId;
        this.type = type;
        this.canDisrupted = canDisrupted;
        this.content = content;
        this.variableId = variableId;
        this.filePath = filePath;
        this.fileLength = fileLength;
        this.callNum = callNum;
        this.sortNum = sortNum;
    }
}
